using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class NetLog_SoftCmd_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(NetLog.SoftCmd);

            field = type.GetField("Active", flag);
            app.RegisterCLRFieldGetter(field, get_Active_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Active_0, null);
            field = type.GetField("ActiveScript", flag);
            app.RegisterCLRFieldGetter(field, get_ActiveScript_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_ActiveScript_1, null);
            field = type.GetField("Move", flag);
            app.RegisterCLRFieldGetter(field, get_Move_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Move_2, null);
            field = type.GetField("MoveTo", flag);
            app.RegisterCLRFieldGetter(field, get_MoveTo_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_MoveTo_3, null);
            field = type.GetField("Scale", flag);
            app.RegisterCLRFieldGetter(field, get_Scale_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_Scale_4, null);
            field = type.GetField("ScaleTo", flag);
            app.RegisterCLRFieldGetter(field, get_ScaleTo_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_ScaleTo_5, null);
            field = type.GetField("Angle", flag);
            app.RegisterCLRFieldGetter(field, get_Angle_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_Angle_6, null);
            field = type.GetField("AngleTo", flag);
            app.RegisterCLRFieldGetter(field, get_AngleTo_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_AngleTo_7, null);
            field = type.GetField("Mat", flag);
            app.RegisterCLRFieldGetter(field, get_Mat_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_Mat_8, null);
            field = type.GetField("OpenLog", flag);
            app.RegisterCLRFieldGetter(field, get_OpenLog_9);
            app.RegisterCLRFieldBinding(field, CopyToStack_OpenLog_9, null);
            field = type.GetField("CloseLog", flag);
            app.RegisterCLRFieldGetter(field, get_CloseLog_10);
            app.RegisterCLRFieldBinding(field, CopyToStack_CloseLog_10, null);
            field = type.GetField("Quality", flag);
            app.RegisterCLRFieldGetter(field, get_Quality_11);
            app.RegisterCLRFieldBinding(field, CopyToStack_Quality_11, null);
            field = type.GetField("Connect", flag);
            app.RegisterCLRFieldGetter(field, get_Connect_12);
            app.RegisterCLRFieldBinding(field, CopyToStack_Connect_12, null);
            field = type.GetField("Fog", flag);
            app.RegisterCLRFieldGetter(field, get_Fog_13);
            app.RegisterCLRFieldBinding(field, CopyToStack_Fog_13, null);
            field = type.GetField("FogColor", flag);
            app.RegisterCLRFieldGetter(field, get_FogColor_14);
            app.RegisterCLRFieldBinding(field, CopyToStack_FogColor_14, null);
            field = type.GetField("SnapShot", flag);
            app.RegisterCLRFieldGetter(field, get_SnapShot_15);
            app.RegisterCLRFieldBinding(field, CopyToStack_SnapShot_15, null);
            field = type.GetField("Update", flag);
            app.RegisterCLRFieldGetter(field, get_Update_16);
            app.RegisterCLRFieldBinding(field, CopyToStack_Update_16, null);
            field = type.GetField("Restart", flag);
            app.RegisterCLRFieldGetter(field, get_Restart_17);
            app.RegisterCLRFieldBinding(field, CopyToStack_Restart_17, null);


            app.RegisterCLRCreateDefaultInstance(type, () => new NetLog.SoftCmd());
            app.RegisterCLRCreateArrayInstance(type, s => new NetLog.SoftCmd[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }



        static object get_Active_0(ref object o)
        {
            return NetLog.SoftCmd.Active;
        }

        static StackObject* CopyToStack_Active_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Active;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_ActiveScript_1(ref object o)
        {
            return NetLog.SoftCmd.ActiveScript;
        }

        static StackObject* CopyToStack_ActiveScript_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.ActiveScript;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Move_2(ref object o)
        {
            return NetLog.SoftCmd.Move;
        }

        static StackObject* CopyToStack_Move_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Move;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_MoveTo_3(ref object o)
        {
            return NetLog.SoftCmd.MoveTo;
        }

        static StackObject* CopyToStack_MoveTo_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.MoveTo;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Scale_4(ref object o)
        {
            return NetLog.SoftCmd.Scale;
        }

        static StackObject* CopyToStack_Scale_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Scale;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_ScaleTo_5(ref object o)
        {
            return NetLog.SoftCmd.ScaleTo;
        }

        static StackObject* CopyToStack_ScaleTo_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.ScaleTo;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Angle_6(ref object o)
        {
            return NetLog.SoftCmd.Angle;
        }

        static StackObject* CopyToStack_Angle_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Angle;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_AngleTo_7(ref object o)
        {
            return NetLog.SoftCmd.AngleTo;
        }

        static StackObject* CopyToStack_AngleTo_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.AngleTo;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Mat_8(ref object o)
        {
            return NetLog.SoftCmd.Mat;
        }

        static StackObject* CopyToStack_Mat_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Mat;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_OpenLog_9(ref object o)
        {
            return NetLog.SoftCmd.OpenLog;
        }

        static StackObject* CopyToStack_OpenLog_9(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.OpenLog;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_CloseLog_10(ref object o)
        {
            return NetLog.SoftCmd.CloseLog;
        }

        static StackObject* CopyToStack_CloseLog_10(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.CloseLog;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Quality_11(ref object o)
        {
            return NetLog.SoftCmd.Quality;
        }

        static StackObject* CopyToStack_Quality_11(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Quality;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Connect_12(ref object o)
        {
            return NetLog.SoftCmd.Connect;
        }

        static StackObject* CopyToStack_Connect_12(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Connect;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Fog_13(ref object o)
        {
            return NetLog.SoftCmd.Fog;
        }

        static StackObject* CopyToStack_Fog_13(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Fog;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_FogColor_14(ref object o)
        {
            return NetLog.SoftCmd.FogColor;
        }

        static StackObject* CopyToStack_FogColor_14(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.FogColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_SnapShot_15(ref object o)
        {
            return NetLog.SoftCmd.SnapShot;
        }

        static StackObject* CopyToStack_SnapShot_15(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.SnapShot;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Update_16(ref object o)
        {
            return NetLog.SoftCmd.Update;
        }

        static StackObject* CopyToStack_Update_16(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Update;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_Restart_17(ref object o)
        {
            return NetLog.SoftCmd.Restart;
        }

        static StackObject* CopyToStack_Restart_17(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = NetLog.SoftCmd.Restart;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new NetLog.SoftCmd();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
